<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		 <div id="app">
			<div>
				年龄：
				<input type="number"  v-model.number="ageTest"/>
				<button @click="addNum">加法</button>
				
				
			</div>
			
			
		 </div>
		
		 <script src="../js/vue.js"></script>
		 
		 <script>
			 const app = new Vue({
				 el:"#app",
				 data:{
					ageTest:""
				 },
				 methods:{
					addNum(){
						this.ageTest+=1
					}
				 }
			 })
		 </script>
	</body>
</html>
